import java.util.Scanner;

/*
  @author: 13813
  @date: 2024/11/14 11:08
*/
public class Test {
    public static void main(String[] args) {
        //创建对象（引用类型，类类型，自定义类型）
        Student stu = new Student();
        stu.name = "张三";
        stu.age = 20;

        System.out.println(stu.name);
        System.out.println(stu.age);

        stu.study();


        Student stu2 = new Student();
        stu2.name = "李四";
        stu2.age = 30;
        stu2.study();

        Scanner scanner = new Scanner(System.in);
        scanner.nextLine();
    }
}
